package demo.protocolEncodeDecode;

import org.apache.mina.core.service.IoHandlerAdapter;
import org.apache.mina.core.session.IoSession;

public class ClientHandler extends IoHandlerAdapter {

	@Override
	public void sessionOpened(IoSession session) throws Exception {
		SmsObject sms = new SmsObject();
		sms.setSender("13522222222");
		sms.setReceiver("13633333333");
		sms.setMessage("你好！hello world!");
		session.write(sms);
	}
}
